var exec = require('cordova/exec');

exports.coolMethod = function (arg0, success, error) {
    exec(success, error, 'CabinetPlugin', 'coolMethod', [arg0]);
};

exports.sendOpenBoxCommand = function (arr, success, error) {
  arr.push(localStorage.getItem('isDev'))
  exec(success, error, 'CabinetPlugin', 'sendOpenBoxCommand', arr);
};

exports.sendQueryCommand = function (arr, success, error) {
  arr.push(localStorage.getItem('isDev'))
  exec(success, error, 'CabinetPlugin', 'sendQueryCommand', arr);
};

exports.sendQueryCommand2 = function (arr, success, error) {
  arr.push(localStorage.getItem('isDev'))
  exec(success, error, 'CabinetPlugin', 'sendQueryCommand2', arr);
};